package cn.kgc.cloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 课工场
 * @date 2024/1/9
 * @description
 */
@RestController
@RequestMapping("nacoss")
public class NacosClient8850Controller {

    @Value("${server.port}")
    private Integer port;

    @Value("${spring.cloud.nacos.discovery.cluster-name}")
    private String position;

    @GetMapping("m1")
    public String method1(){
      return "invoke NacosClient  ok port = "+port +"position = "+position;
    }
}
